﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.views.popups.treatment {
    import reprise.ui.*;
    import flash.events.*;
    import net.wooga.pets.interfaces.*;
    import net.wooga.pets.constants.*;
    import net.wooga.pets.utils.*;

    public class FirstCuredPopupMediator extends TreatmentPopupMediator {

        override public function onRegister():void{
            super.onRegister();
            var _local1:ITreatable = ITreatable(this.view.data);
            var _local2:String = _local1.diseaseType;
            var _local3:int = _local1.diseaseId;
            var _local4:UIComponent = RepriseUtils.addComponent(this.view, "contentDisplay");
            addPatientPicture("IllAnimalsFrame", (_local2 + "Walk"), 55, 55, _local4);
            setPatient(_local4, (_local2 + "ThankYou"), 180);
            addLabel("header myriadProFont", "sun_message_treatedfirsttime", null, _local4);
            addLabel("title myriadProFont", ("global_disease_no" + _local3), null, _local4);
            addOkButton(okButtonLabel, _local4);
        }
        override protected function onOk(_arg1:MouseEvent):void{
            super.onOk(_arg1);
            sendPostOnWall(GameConstants.POST_FIRST_CURED);
        }
        private function get view():FirstCuredPopupView{
            return ((viewComponent as FirstCuredPopupView));
        }

    }
}//package net.wooga.pets.views.popups.treatment 
